import Vue from "vue";
import VueRouter from "vue-router";
import Factor from "../views/factor/Home.vue";
import Ranking from "../views/ranking/Home.vue";
import Enterprise from "../views/enterprise/Home.vue";
import Edu from '../views/Edu/Home.vue'

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/factor",
  },
  {
    path: "/factor",
    name: "Factor",
    component: Factor,
  },
  {
    path: "/ranking",
    name: "Ranking",
    component: Ranking,
  },
  {
    path: "/enterprise",
    name: "Enterprise",
    component: Enterprise
  },
  {
    path:'/edu',
    name:"Edu",
    component: Edu
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
